{% extends "t_ch/admin/admin_base.html" %}

{% block title %}Index of all technologies{% endblock %}

{% block article %}

    <h1>Index of all technologies</h1>
    <p><a href="{% url t_ch_admin_create %}">New technology</a></p>
    <h2>Existing technologies</h2>
    {% if technologies %}
        {% for technology in technologies %}
            <div>
                <a href="{% url t_ch_admin_edit technology.slug %}">{{ technology.name }}</a>
                <form action="{% url t_ch_admin_delete %}" method="POST">
                    <input type="hidden" name="slug" value="{{ technology.slug }}">
                    <input type="submit" value="Delete">
                </form>
            </div>
        {% endfor %}
    {% else %}
       <p>No technologies yet.</p>
    {% endif %}
{% endblock %}